package com.ruoyi.project.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 劳务分包对象 labor_subcontract
 * 
 * @author ruoyi
 * @date 2021-10-18
 */
public class LaborSubcontract extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 单位名称 */
    @Excel(name = "单位名称")
    private String name;

    /** 负责人姓名 */
    @Excel(name = "负责人姓名")
    private String personName;

    /** 职务 */
    @Excel(name = "职务")
    private String duty;

    /** 联系方式 */
    @Excel(name = "联系方式")
    private String tel;

    /** 进场时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "进场时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date inTime;

    /** 出差时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出差时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date outTime;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    private String roleKey;


    public String getRoleKey() {
        return roleKey;
    }

    public void setRoleKey(String roleKey) {
        this.roleKey = roleKey;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPersonName(String personName) 
    {
        this.personName = personName;
    }

    public String getPersonName() 
    {
        return personName;
    }
    public void setDuty(String duty) 
    {
        this.duty = duty;
    }

    public String getDuty() 
    {
        return duty;
    }
    public void setTel(String tel) 
    {
        this.tel = tel;
    }

    public String getTel() 
    {
        return tel;
    }
    public void setInTime(Date inTime) 
    {
        this.inTime = inTime;
    }

    public Date getInTime() 
    {
        return inTime;
    }
    public void setOutTime(Date outTime) 
    {
        this.outTime = outTime;
    }

    public Date getOutTime() 
    {
        return outTime;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("personName", getPersonName())
            .append("duty", getDuty())
            .append("tel", getTel())
            .append("inTime", getInTime())
            .append("outTime", getOutTime())
            .append("status", getStatus())
            .append("remark", getRemark())
            .toString();
    }
}
